# m行n列 *号矩阵
# m = 4
# n = 5
# for i in range(m):
#     for j in range(n):
#         print('*',end='')
#     print()

# 打印n行等腰三角形
# n = 9
# for i in range(n):
#     print(' '*(n - i - 1),end='')
#     print('*' * (((i+1)*2)-1))

# 猴子吃桃 穷举
# peach = 1
# while True:
#     d1 = peach / 2 - 1
#     d2 = d1 / 2 - 1
#     d3 = d2 / 2 - 1
#     if d3 == 1:
#         print(peach)
#         break
#     peach += 1

#九九乘法表
for i in range(1,10):
    for j in range(i):
        print((j+1),"*",i,"=",i*(j+1),"  ",end='')

    print()